package Model;
import java.util.ArrayList;

public class CustomerCont
{
   private static ArrayList<Customer> customers;
   
   private static CustomerCont instance;
   
  private CustomerCont()
  {
      customers = new ArrayList<>();
   
  }
   
  public static CustomerCont getInstance()
  {
      if(instance == null){
          instance = new CustomerCont();
        }
        return instance;
    }
  
  public static void addCustomer(Customer c) {
      customers.add(c);
    }
  
  public static ArrayList<Customer> getCont()
  {
      return customers;
    }
 
    
}